﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SBossGuildDropInfo extends IMessageBase
    {
        public var guildId:int;
        public var bossCode:int;
        public var items:String;
        public var playerId:Dictionary;
        public const _type:int = 5121;
        public static var _regist:SBossGuildDropInfo = new SBossGuildDropInfo(true);

        public function SBossGuildDropInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SBossGuildDropInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.guildId);
            param1.writeInt(this.bossCode);
            param1.writeString(this.items);
            DictIntIntHelper.write(param1, this.playerId);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.guildId = param1.readInt();
            this.bossCode = param1.readInt();
            this.items = param1.readString();
            this.playerId = DictIntIntHelper.read(param1);
            return;
        }// end function

    }
}
